<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/12/11
 * Time: 10:36
 */

namespace app\common\entity;


use think\Model;

class Proportion extends Model
{
    protected $table = 'proportion';

    public static function getToday()
    {
        return self::where('date', '<=', date('Y-m-d H:i:s', time()))->order('date desc')->value('ratio');
    }
}